import request from '@/utils/request'
// 获取-分页查询角色列表
export const getRoleAPI = params => request('/sys/role', { params })

// 新增-角色
export const addRoleAPI = data => request.post('/sys/role', data)

// 修改-角色
export const editRoleAPI = data => request.put(`/sys/role/${data.id}`, data)

// 获取-角色详情
export const getRoleDetailAPI = id => request(`/sys/role/${id}`)

// 分配权限-角色
export const assignPermAPI = data => request.put('/sys/role/assignPrem', data)
